package com.tanhua.server.service.impl;

import com.tanhua.dubbo.api.BlackListApi;
import com.tanhua.server.interceptor.UserHolder;
import com.tanhua.server.service.BlackListService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BlackListServiceImpl implements BlackListService {

    @DubboReference
    private BlackListApi blackListApi;
    @Override
    public void delete(Long uid) {
        blackListApi.delete(UserHolder.getUserId(),uid);
    }
}
